// flex混合器
@mixin flex($justify: center, $align: center) {
    display: flex;
    justify-content: $justify;
    align-items: $align;
  }
  
  // 单行文本溢出省略 加省略号
  @mixin text-overflow() {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  
  // 多行文本溢出省略
  @mixin text-ellipsis($line: 3) {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: $line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
  }
  
  // 宽高混合器
  @mixin size($width: 100%, $height: 100%) {
    width: $width;
    height: $height;
  }
  
@mixin BaseDialog(){
  .uni-dialog-title {
    padding: 10px 0;
    border-bottom: 2px solid #6aa7ec;
  }
}

@mixin BaseCard(){
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  padding: 10px 10px;
  margin-top: 10px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  &.hover {
    box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.1);
    font-weight: 600;
  }
}

@mixin SerialNum($width, $height, $color){
  @include size($width,  $height);
  text-align: center;
  line-height: $height;
  border: 1px solid  $color;
  border-radius: 100%;
  color:  $color;
}